package com.erp.order.purchasing.dao;

import com.erp.hr.base.dao.BaseDao;
import com.erp.order.purchasing.model.PurchaseOrderDetailVO;
import com.erp.order.purchasing.model.PurchasingRequisitionDetail;
import com.erp.order.supply.model.SupplyMaterialDetailR;

import java.util.List;
import java.util.Set;

/**
 * 采购申请详情 持久层
 * @Author: syz
 * @blame syz
 * @CreateTime: 2021/4/6
 */
public interface PurchasingRequisitionDetailDao extends BaseDao<PurchasingRequisitionDetail> {

    /**
     * 根据申请id获取详情集合
     * @param id 申请id
     * @return 详情集合
     */
    List<PurchasingRequisitionDetail> getListByRequisitionId(Long id);

    /**
     * 获取单一采购订单详情
     * @param inquiryListId 询价单id
     * @return 采购订单详情
     */
    List<PurchaseOrderDetailVO> getOnlyOrderDetail(Long inquiryListId);

    /**
     * 获取询比价采购订单详情
     * @param inquiryListId 询价单id
     * @return 采购订单详情
     */
    List<PurchaseOrderDetailVO> getOtherOrderDetail(Long inquiryListId);

    /**
     * 根据id集合获取对象集合
     * @param ids id集合
     * @return 对象集合
     */
    List<PurchasingRequisitionDetail> getByIds(Set<Long> ids);

    List<SupplyMaterialDetailR> getDetailsByOrderId(Long id);
}